<!DOCTYPE html>
<html lang="">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width,initial-scale=1.0">
  <meta name="referrer" content="no-referrer" />
  <link rel="icon" href="<%= BASE_URL %>favicon.ico">
  <link href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
  <title>
    <%= htmlWebpackPlugin.options.title %>
  </title>
  <style>
    * {
      margin: 0;
      list-style: none;
    }

    .el-menu--horizontal>.el-submenu .el-submenu__title {
      height: 46px !important;
      line-height: 46px !important;
    }

    .el-menu--popup-bottom-start {
      margin-top: 0 !important;
      width: 120px;
    }

    .trainbox .el-carousel__arrow {
      width: 50px;
      height: 50px;
      background: rgb(245, 84, 106);
    }

    ::-webkit-scrollbar {
      width: 10px;
      /*滚动条宽度*/
      height: 10px;
      /*滚动条高度*/
    }

    /*定义滚动条轨道 内阴影+圆角*/
    ::-webkit-scrollbar-track {
      /* -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); */
      border-radius: 3px;
      /*滚动条的背景区域的圆角*/
      background-color: rgb(238, 238, 238);
      /*滚动条的背景颜色*/
    }

    /*定义滑块 内阴影+圆角*/
    ::-webkit-scrollbar-thumb {
      border-radius: 4px;
      height: 20px;
      /*滚动条的圆角*/
      /* -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3); */
      background-color: #999;
      /*滚动条的背景颜色*/
    }
  </style>
</head>

<body>
  <noscript>
    <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
      Please enable it to continue.</strong>
  </noscript>
  <div id="app"></div>
</body>

</html>
<script>
  window.addEventListener("scroll", function () {
    let t = document.documentElement.scrollTop
    let nav = document.getElementsByClassName("head-container")[0]
    if (t > 100) {
      nav.style.position = "fixed"
      nav.style.top = 0
    } else {
      nav.style.position = "relative"
    }
  })
</script>